package com.ffapp.rainmonitorcustom.bean;

import android.text.TextUtils;

public class UserMsgListData extends BasisBean {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * ID : C7140F488C144C80AF9B30BB06DF780E
	 * APPID : 10001
	 * PROJECTNO : 350203
	 * DEVICETYPE : electric
	 * DATAID : 189B35B9D7364EC0BDD38E548585B1DD
	 * DATANO : 000000000090
	 * CONTENT : 电气火灾(人民剧场)
	 单位：厦门市人民剧场
	 建筑物：厦门市人民剧场
	 位置：剧场大楼
	 报警信息：温度过高
	 时间：18-10-16 09:25:13
	 * CREATETIME : 2018-10-17 15:55:27
	 * MSGTYPE : 2
	 * CREATEUSER : xmxf
	 * RN : 1
	 */

	private String ID;
	private String APPID;
	private String PROJECTNO;
	private String DEVICETYPE;
	private String DATAID;
	private String DATANO;
	private String CONTENT;
	private String CREATETIME;
	private String MSGTYPE;
	private String CREATEUSER;
	private String TITLE;
	private String READSTATUS;
	private int RN;

	public String getID() {
		return ID;
	}

	public void setID(String ID) {
		this.ID = ID;
	}

	public String getAPPID() {
		return APPID;
	}

	public void setAPPID(String APPID) {
		this.APPID = APPID;
	}

	public String getPROJECTNO() {
		return PROJECTNO;
	}

	public void setPROJECTNO(String PROJECTNO) {
		this.PROJECTNO = PROJECTNO;
	}

	public String getDEVICETYPE() {
		return DEVICETYPE;
	}

	public void setDEVICETYPE(String DEVICETYPE) {
		this.DEVICETYPE = DEVICETYPE;
	}

	public String getDATAID() {
		return DATAID;
	}

	public void setDATAID(String DATAID) {
		this.DATAID = DATAID;
	}

	public String getDATANO() {
		return DATANO;
	}

	public void setDATANO(String DATANO) {
		this.DATANO = DATANO;
	}

	public String getCONTENT() {
		return CONTENT;
	}
	public String getCONTENTStr() {
		if(TextUtils.isEmpty(CONTENT))return "";
//		String str =  CONTENT.replace("\\\n", "\n").replace("\\\r","\r")
		return CONTENT.replace("\\n", "\n").replace("\\r","\r");
	}

	public void setCONTENT(String CONTENT) {
		this.CONTENT = CONTENT;
	}

	public String getCREATETIME() {
		return CREATETIME;
	}

	public void setCREATETIME(String CREATETIME) {
		this.CREATETIME = CREATETIME;
	}

	public String getMSGTYPE() {
		return MSGTYPE;
	}

	public void setMSGTYPE(String MSGTYPE) {
		this.MSGTYPE = MSGTYPE;
	}

	public String getCREATEUSER() {
		return CREATEUSER;
	}

	public void setCREATEUSER(String CREATEUSER) {
		this.CREATEUSER = CREATEUSER;
	}

	public int getRN() {
		return RN;
	}

	public void setRN(int RN) {
		this.RN = RN;
	}

	public  AlarmListData getAlarmListData(){
		AlarmListData alarmListData = new AlarmListData();
		alarmListData.setNO(getDATANO());
		alarmListData.setID(getDATAID());
		alarmListData.setDEVICETYPE(getDEVICETYPE());
		return alarmListData;
	}

	public String getTITLE() {
		return TITLE;
	}

	public void setTITLE(String TITLE) {
		this.TITLE = TITLE;
	}

	public String getREADSTATUS() {
		return READSTATUS;
	}
	public boolean getREADSTATUS_Boolean() {
		if(TextUtils.isEmpty(READSTATUS))return false;
		return READSTATUS.equals("2");
	}

	public void setREADSTATUS(String READSTATUS) {
		this.READSTATUS = READSTATUS;
	}
}
